<template>
  <div>
    <h1>App组件</h1>
    <Child v-model="num"></Child>
    <ul>
      <li>绑定一个value属性：给组件传递一个props数据，叫value</li>
      <li>绑定一个input事件:给组件绑定自定义事件，叫input</li>
      <li>一般用于表单项</li>
    </ul>
  </div>
</template>

<script>
import Child from "./Child.vue";
export default {
  name: "App",
  data() {
    return {
      num: 0,
    };
  },
  components: {
    Child,
  },
};
</script>

<style>
</style>